package com.ddpt.permission.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lh.center.common.base.BizMapper;
import com.lh.center.permission.api.entity.Role;
import com.lh.center.permission.api.request.RoleQueryRequest;
import com.lh.center.permission.api.response.RoleResponse;
import com.lh.center.permission.api.response.SaasRoleResponse;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author czy
 * @since 2022-04-07
 */
public interface RoleMapper extends BizMapper<Role> {

    Long queryMerchantRoleTotal(RoleQueryRequest queryRequest);

    Page<RoleResponse> queryMerchantRolePageList(RoleQueryRequest queryRequest);

    List<RoleResponse> querySimpleList(Long merchantId);

    Long queryBackAdminRoleTotal(RoleQueryRequest queryRequest);

    Page<SaasRoleResponse> queryBackAdminRolePageList(RoleQueryRequest queryRequest);
}
